﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EasyDLL.AOP.Attributes;
using EasyDLL.Logging;

namespace WebForm.Logging
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TestLoggingMethod("2324242");
        }


        [Logging("即将抛出异常了")]
        public void TestLoggingMethod(string dateTime)
        {
            LoggingWrapper.Instance.LogInfo("我在方法里面");
            DateTime.Parse(dateTime);
            LoggingWrapper.Instance.LogInfo("我在异常之后");
        }
    }
}